#include <QString>
#include <iostream>
#include "faceTreeItem.h"

FaceTreeItem::FaceTreeItem(QTreeWidgetItem *_parentItem, Face *_f) : TreeItem(_parentItem), face(_f){
    setExpanded(true);

    QString str = QString::fromUtf8("Face ");

    str.append(QString::number(face->getId()));
    setText(0, str);
}

FaceTreeItem::~FaceTreeItem(){
}

Face *FaceTreeItem::getFace(){
    return face;
}

void FaceTreeItem::select(bool _b){
    face->select(_b);
}
